package customer

type BaseField struct {
	Name     string `gorm:"column:name" json:"name,omitempty" binding:"required"`           // 姓名 - 筛选条件
	Gender   int    `gorm:"column:gender" json:"gender,omitempty"`                         // 性别
	Phone    string `gorm:"column:phone" json:"phone,omitempty" binding:"required"`       // 手机号码
	Email    string `gorm:"column:email" json:"email,omitempty"`                           // 邮箱
	Company  string `gorm:"column:company" json:"company,omitempty" binding:"required"`   // 所属公司 - 筛选条件
	Position string `gorm:"column:position" json:"position,omitempty" binding:"required"` // 职位
	CustomerStatus int `gorm:"column:customer_status" json:"customer_status,omitempty"`       // 客户状态 - 筛选条件 (0:潜在客户, 1:活跃客户, 2:流失客户)
}

type Id struct {
	Id int `form:"id" json:"id" binding:"required,min=1"` // 注意：gin框架数字的存储形式都是 int
}

type Name struct {
	Name string `form:"name" json:"name" `
}

type Company struct {
	Company string `form:"company" json:"company" `
}

type CustomerStatus struct {
	CustomerStatus int `form:"customer_status" json:"customer_status" `
}
